package com.jixiang.model.goods.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * (GsGoodsSkus)表实体类
 *
 * @author makejava
 * @since 2023-10-23 20:49:03
 */
@SuppressWarnings("serial")
@Data
public class GsGoodsSkus extends Model<GsGoodsSkus> {

    private Long id;

    private Long goodsId;

    private Double price;

    private Double oldPrice;

    private Integer inventory;
    private String picture;
    @TableField(exist = false)
    List<GsGoodsSkusValue> specs;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getOldPrice() {
        return oldPrice;
    }

    public void setOldPrice(Double oldPrice) {
        this.oldPrice = oldPrice;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

